import { defHttp } from '@/utils/http/axios'
import { GetAccountInfoModel } from '@/api/demo/model/accountModel'

enum Api {
  GET_WATER_YIELD_LINE = '/chart/dict/thisDataWaterInfoReport',
  GET_WATER_YIELD_TABLE = '/chart/dict/compareWaterInfoReport',
}

export const getWaterYieldLine = (params) =>
  defHttp.get<GetAccountInfoModel>({ url: Api.GET_WATER_YIELD_LINE, params })
export const getWaterYieldTable = (params) =>
  defHttp.get<GetAccountInfoModel>({ url: Api.GET_WATER_YIELD_TABLE, params })
